@Test
public void shouldRedirectToPageWithProperResults() {
	//Given
	tester = new WicketTester(new WordCounterApplication());
	tester.startPage(WordCounterStartPage.class);
	FormTester form = tester.newFormTester("analyzeForm");

	//When
	form.setValue("inputTextArea", "as asa\nhasa masa");
	form.submit();

	//Then
	tester.assertRenderedPage(ResultsPage.class);
	final WordObject as = new WordObject("as", 1, 3);
	final WordObject asa = new WordObject("asa", 1, 2);
	final WordObject hasa = new WordObject("hasa", 1, 0);
	final WordObject masa = new WordObject("masa", 1, 0);
	tester.assertListView("words", Arrays.asList(as, asa, hasa, masa));
	}
	